
# 字符串测试

# 2.3.2 在字符串中使⽤变量

name = "ada lovelace";
print(name.title());

first_name = "ada";
last_name = "lovelace";
full_name = f"{first_name} {last_name}";
print(full_name)

message = f"Hello {full_name.title()}";
print(message)

# 2.3.3
# 使⽤制表符或换⾏符来添加空⽩

print("language:\n\tPython\n\tC\n\tJavascript");

message = "https://blog.csdn.net/fly_view/article/details/125134170";
message.removeprefix("https://")

message =  'One of Python\'s strengths is its diverse community.'
print(message)